<?php 
global $header;
global $footer;
global $control;

global $email;
global $nickname;
global $description;
global $message;
global $error;

global $featureManager;
$header['title'] = 'Change your password';
$header['head'] = '';
$header['intro'] = '<strong>QuickMerger</strong> is the way you make a dictionary oriented with source glossaries. First prepare your source glossaries, and you may then quickly and easily make your own dictionary with one click. After that, your dictionary is still editable &mdash; add/modify/remove a term or a definition in it, or even sort them. <a href="#">See more</a>. ';
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);
$control['current'] = 'account_settings';
$featureManager->apply("com.yizin.platform.site.control", $control);

?>
<?= $header['html']?>
<div class="container-L">
	<?=$control['html']?>
</div>
<div class="container-R">
	<?=Utils::showMessage($message)?>
	<form method="post" action="<?=REQUEST_BASE?>account/profile/">
		<h3>Account settings</h3>
		<table class="form">
			<tr>
				<th><label for="nickname">Screen name</label></th>
				<td><input type="text" name="nickname" id="nickname" value="<?=$nickname?>" class="text text-long" /><?=Utils::showFormError($error['nickname'])?></td>
			</tr>
			<tr>
				<th><label for="email">E-mail</label></th>
				<td><input type="text" name="email" id="email" value="<?=$email?>" class="text text-long" /><?=Utils::showFormError($error['email'])?></td>
			</tr>
			<tr>
				<th><label for="description">Personal introduction</label></th>
				<td><textarea rows="3" name="description" id="description" class="text"><?=$description?></textarea></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" value="Update" class="button" /></td>
			</tr>
		</table>
	</form>
</div>
<?= $footer['html']?>
